home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 064 (1990-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 064 (1990-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / cclib / source / test.c < prev    next >
C/C++ Source or Header  |  1990-02-14  |  247b  |  19 lines

  1. #include "stdio.h"
  2. #include "time.h"
  3.  
  4. short _math = 0;
  5.  
  6. short main(argc,argv)
  7. short argc;
  8. char *argv[];
  9. {
  10. time_t t;
  11. struct tm *tm;
  12. char buf[80];
  13. t = time(0L);
  14. tm = localtime(&t);
  15. strftime(buf,79,"%A %B, %d %Y %I:%M %p",tm);
  16. printf("%s\n",buf);
  17. }
  18.  
  19.